using System;
using System.Windows;

namespace TabControlLib.Tools
{
    public static class ResourceHelper
    {
        public static T GetResourceInternal<T>(string key) where T : class
        {
            if (Application.Current?.Resources[key] is T resource)
            {
                return resource;
            }

            return null;
        }
    }

    public static class ResourceToken
    {
        public static readonly string Boolean2VisibilityConverter = nameof(Boolean2VisibilityConverter);
    }
}
